package com.dragons.spring5_webflux.service;


import com.dragons.spring5_webflux.entities.User;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

public interface UserService {
    /**Mono返回一个或不返回，Flux返回多个元素*/
    Mono<User> getUserById(int id);//根据 id 查询用户
    Flux<User> getAllUser();//查询所有用户
    Mono<Void> saveUserInfo(Mono<User> user);//添加用户
}
